package com.photography.mapper;

import com.photography.entity.Cart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


public interface CartMapper extends BaseMapper<Cart> {
    /**
     * 根据用户ID和商品ID查询购物车记录
     */
    Cart findByUserIdAndProductId(@Param("userId") Integer userId, @Param("productId") Integer productId);

}
